<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/crs.css">
        <script src="<c:url value="/js/jquery-1.10.2.min.js" />"></script>
        <script src="<c:url value="/js/crs.js" />"></script>
        <title>Paper zuordnen</title>
    </head>
    <body>
        <span class="username">Name</span>
        
        <span class="roles">
            <form action="AssignRights" method="POST">
                <select id="userselect" name="user">
                <c:forEach items="${userlist}" var="user">
                        <option value="${user.getId()}">${user.getName()}</option>
                </c:forEach>
                </select>
                
                <table id="Checkboxlist1">
                    <tr>
                        <td><input id="chkParticipant" type="checkbox" name="role" value="participant" /><label for="participant">Teilnehmer</label></td>
                    </tr><tr>
                        <td><input id="chkReviewer" type="checkbox" name="role" value="reviewer" /><label for="reviewer">Gutachter</label></td>
                    </tr><tr>
                        <td><input id="chkOrganizer" type="checkbox" name="role" value="organizer" /><label for="organizer">Organisator</label></td>
                    </tr>
                </table>
                <input type="hidden" name="action" value="assignrightstouser"/>
                <input type="submit" value="Rechte vergeben">
        
            </form>
        </span>
        
        <form action="OrganizerView">
            <input type="submit" value="OK"/>
        </form>

        <form action="LoginPage">
            <input type="hidden" name="action" value="logout"/>
            <input type="submit" value="Logout"/>
        </form>
    </body>
</html>
